package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_oragn_attentionuser"
    ,catalog="zutuan_prot"
)
public class JujuOragnAttentionuser  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuOragnAttentionuser";
	public static final String TABLE_NAME="juju_oragn_attentionuser";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_organid = "organid"; 
	public static final String P_userid = "userid"; 
	public static final String P_attentionFlag = "attentionFlag"; 

     private String id;
     private String organid;
     private String userid;
     private Integer attentionFlag;

    public JujuOragnAttentionuser() {
    }
	
    public JujuOragnAttentionuser(String id) {
        this.id = id;
    }
    public JujuOragnAttentionuser(String id, String organid, String userid, Integer attentionFlag) {
        this.id = id;
        this.organid = organid;
        this.userid = userid;
        this.attentionFlag = attentionFlag;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="ORGANID", length=36)
    public String getOrganid() {
        return this.organid;
    }
    
    public void setOrganid(String organid) {
        this.organid = organid;
    }
    
    @Column(name="USERID", length=36)
    public String getUserid() {
        return this.userid;
    }
    
    public void setUserid(String userid) {
        this.userid = userid;
    }
    
    @Column(name="ATTENTION_FLAG")
    public Integer getAttentionFlag() {
        return this.attentionFlag;
    }
    
    public void setAttentionFlag(Integer attentionFlag) {
        this.attentionFlag = attentionFlag;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


